<ion-view view-title="我的推荐人">
	<ion-content class="">
		<div style="text-align: center;" ng-if="showflag">
			<div style="margin:.8rem auto auto auto;">
				<img ng-src="{{refereece.gragh}}" border="0">
			</div>
			<div style="margin:0.3rem auto; display: block; font-size:0.2rem; font-weight: bold;">我的推荐人</div>
			<div class="row">
				<div class="col"></div>
				<div class="col" style="font-size:0.18rem;">{{refereece.membername}}</div>
				<div class="col" style="text-align: left;">
					<a ng-click="toedit();" class="button button-clear" 
						style="color:coral;min-height: .2rem !important;line-height:.28rem;font-size: .12rem;">修改</a>
				</div>
			</div>
			<div class="" style="" >
    				<span style="padding-top: 10px; color: #b2b2b2;">修改推荐人将扣除10000红包积分</span>
			</div>
		</div>
	</ion-content>
</ion-view>
<script id="refereeedit.html" type="text/ng-template">
<ion-view view-title="修改推荐人">
    <ion-header-bar align-title="left" class="bar-positive">
		<button ng-click="goback()" class="button back-button buttons button-clear header-item" style="">
			<i class="icon ion-ios-arrow-back"></i> 
			<span class="back-text" style="transform: translate3d(0px, 0px, 0px);">
				<span class="default-title hide">返回</span>
				<span class="previous-title">返回</span>
			</span>
		</button>
		<h1 class="title" style="left: 0; text-align: center;">修改推荐人</h1>
		<button class="button back-button buttons button-clear header-item" style="visibility: hidden;">
			<i class="icon ion-ios-arrow-back"></i> 
			<span class="back-text" style="transform: translate3d(0px, 0px, 0px);">
				<span class="default-title hide">返回</span>
				<span class="previous-title">返回</span>
			</span>
		</button>
	</ion-header-bar>
    <ion-content class="trasfernext writeback">
        <div style="margin-top:1rem;">
			<div class="list">
				<div class="list">
					<label class="item item-input" style="border-color: #ffc900;height:48px">
          				<span class="input-label" 
          					style="display: inline-block;text-align: center;">推荐人昵称</span>
          				<input type="text" ng-model="newrefereece.name" 
          					style="height: 30px; line-height: 40px; font-size: 16px;  border-bottom: 1px solid #d2d2d2; padding-left: 0.1rem;">
        				</label>
        				<span style="text-align: left; padding-top: 10px; 
        					display: inline-block; padding-left: 10px; color: #333;" >
        					推荐人修改将扣除10000红包积分</span>
				</div>
				<div class="" style="">
					<a ng-click="nextstep()" class="button button-block button-energized next"
						 style="width:80%; margin:0.3rem auto;   color: #fff !important;">下一步</a>
				</div>
			</div>
		</div>
    </ion-content>
</ion-view>
</script>
<script id="refereecommit.html" type="text/ng-template">
<ion-view view-title="修改完成">
	<ion-header-bar align-title="left" class="bar-positive">
		<button ng-click="goback1()" class="button back-button buttons button-clear header-item" style="">
			<i class="icon ion-ios-arrow-back"></i> 
			<span class="back-text" style="transform: translate3d(0px, 0px, 0px);">
				<span class="default-title hide">返回</span>
				<span class="previous-title">返回</span>
			</span>
		</button>
		<h1 class="title" style="left: 0; text-align: center;">修改完成</h1>
		<button class="button back-button buttons button-clear header-item" style="visibility: hidden;">
			<i class="icon ion-ios-arrow-back"></i> 
			<span class="back-text" style="transform: translate3d(0px, 0px, 0px);">
				<span class="default-title hide">返回</span>
				<span class="previous-title">返回</span>
			</span>
		</button>
	</ion-header-bar>
    <ion-content class="trasfernext writeback">
        <div style="text-align: center;">
			<div style="margin:0.8rem auto auto auto;">
				<img ng-src="{{newrefereece.gragh}}" border="0">
			</div>
			<div style="margin:0.3rem auto; display: block; font-size:0.2rem; font-weight: bold;">{{newrefereece.membername}}</div>
			<div class="" style="" >
				<a ng-click="saverefereece()" ng-if="!saveok" class="button button-block button-energized next"
					 style="margin: 0.1rem 0.3rem 0.2rem .3rem; color: #fff !important;">确定修改</a>
    				<span style="padding-top: 10px; color: #b2b2b2;" ng-if="!saveok">修改推荐人将扣除10000红包积分</span>
    					
				<a ng-click="comlet();" ng-if="saveok" 
					class="button button-block button-energized next"
					 style="margin: 0.1rem 0.3rem 0.2rem .3rem; color: #fff !important;">完成</a>
    				<span style="padding-top: 10px; color: #b2b2b2;" ng-if="saveok">修改成功</span>
			</div>
		</div>
    </ion-content>
</ion-view>
</script>
